function sandbox = fsb_get_hemodynamics(dim,sandbox,what)

% FSB : create sandbox struct with different GUIs
%
% EXAMPLE: sb = fsb_get_hemodynamics(dim,sandbox,scaninfo,what)
%
% INPUT:
% dim:      size of idat
% sandbox:  sandbox experiment struct
% what:     which operation to perform in order to get data
%
% OUTPUT:
% sandbox:  sandbox struct with experiment design
%
% CALLED BY:
% FSB.m
%
% NOTES:
% 
%
% Copyright 2010 MPI for Biological Cybernetics
% Author: Steffen Stoewer
% License: GNU GPL, no express or implied warranties
% 
% $ Revision 1.0
%
% ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
% Check what needs to be done
%~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
switch what;

    case 'Blocked' %8
        try
            sandbox = fsb_get_hemodynamics_blocked(dim(4),sandbox);
        catch
            disp('No design selected, aborting')
            return
        end

    case 'Event related' %9
        try
            sandbox = fsb_get_hemodynamics_er(dim(4),sandbox);
        catch
            disp('No design selected, aborting')
            return
        end
end

end
